//
//  MineMessageModel.swift
//  E-CycleForShop
//
//  Created by enghou on 17/3/9.
//  Copyright © 2017年 xyxorigation. All rights reserved.
//

import UIKit

class MineCollectionMessageModel: BaseModel {
    var sourceArr : Array<MineMessageModel> = []
    override init(source sourceDt: Dictionary<String, Any>?) {
        super.init(source: sourceDt)
        //解析数据赋值给sourcearr
        guard self.data != nil else{
            return
        }
        if let dataDic = self.data as? Dictionary<String,Any> {
            if let array = dataDic["list"] as? Array<Dictionary<String,Any>>{
                for item in array {
                    let mod = MineMessageModel.init(source: item)
                    sourceArr.append(mod)
                }
            }
        }
    }
}
